package com.meepo.sdk.utils

import android.os.CountDownTimer

object Func {

    @JvmStatic
    public fun delay(millisInFuture: Long, func: () -> Unit) {
        object : CountDownTimer(millisInFuture, millisInFuture) {
            override fun onFinish() {
                func()
            }

            override fun onTick(p0: Long) {
            }

        }.start()
    }

    @JvmStatic
    fun orString(vararg values: String?): String {
        if (values.isEmpty()) return ""
        for (value in values) {
            if (value != null && value != "") {
                return value
            }
        }
        return ""
    }
}